import request from '@/utils/request'

// 查询采集文章内容列表
export function listSpiderContent(query) {
  return request({
    url: '/article/spiderContent/list',
    method: 'get',
    params: query
  })
}

// 查询采集文章内容详细
export function getSpiderContent(id) {
  return request({
    url: '/article/spiderContent/' + id,
    method: 'get'
  })
}

// 新增采集文章内容
export function addSpiderContent(data) {
  return request({
    url: '/article/spiderContent',
    method: 'post',
    data: data
  })
}

// 修改采集文章内容
export function updateSpiderContent(data) {
  return request({
    url: '/article/spiderContent',
    method: 'put',
    data: data
  })
}

// 删除采集文章内容
export function delSpiderContent(id) {
  return request({
    url: '/article/spiderContent/' + id,
    method: 'delete'
  })
}
